//
//  ReleatedController.m
//  History
//
//  Created by 七 on 16/9/5.
//  Copyright © 2016年 kane. All rights reserved.
//

#import "ReleatedController.h"

@interface ReleatedController ()<UITableViewDelegate,UITableViewDataSource>
{
    __weak IBOutlet UIView *navView;
    IBOutlet UIView *BGView;
    __weak IBOutlet UILabel *titleLbl;
    __weak IBOutlet UILabel *lineLbl;
    __weak IBOutlet UITableView *relatedTable;
    
    
    
}
@end

@implementation ReleatedController

- (void)viewDidLoad {
    [super viewDidLoad];
    navView.backgroundColor = KKColor_DarkGray_White;
    BGView.backgroundColor = KKColor_BGColor_GrayToDarkgray;
    titleLbl.textColor = KKColor_Black_LightGary;
    lineLbl.backgroundColor = KKColor_NavLineColor;
    relatedTable.backgroundColor = KKColor_DarkWhite_Black;
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - User Action
//绑定新浪微博
- (void) releatedSina
{
    
}

- (IBAction)backPress:(id)sender {
    [self.navigationController popViewControllerAnimated:YES];
}

#pragma mark UITableViewDelegate & datasource
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 1;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    NSString *identify = [NSString stringWithFormat:@"%ld%ld",(long)indexPath.section,(long)indexPath.row];
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identify];
    if (!cell) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identify];
    }
    cell.backgroundColor = KKColor_DarkGray_White;
    cell.textLabel.textColor = KKColor_Black_LightGary;
    cell.textLabel.font = [UIFont systemFontOfSize:15];
    cell.textLabel.text = @"新浪微博";
    cell.imageView.image = [UIImage imageNamed:@"releated_sina"];
    UISwitch *releateSwitch = [[UISwitch alloc] initWithFrame:CGRectZero];
    cell.accessoryView = releateSwitch;
    [releateSwitch addTarget:self action:@selector(releatedSina) forControlEvents:UIControlEventEditingChanged];
    return cell;
}



@end
